#ifndef CPPPROJECT_LIBRARY_H
#define CPPPROJECT_LIBRARY_H

#ifdef _WIN32
#ifdef DLL_EXPORTS
#define SIMPLE_CLASS_EXPORT __declspec(dllexport)
#else
#define SIMPLE_CLASS_EXPORT __declspec(dllimport)
#endif
#else // linux ...
#define SIMPLE_CLASS_EXPORT
#endif


#ifdef __cplusplus
extern "C" {
#endif


// 中文
enum {
    airNoDio_okay,    /*  0: actually, you CAN do direct I/O */
    airNoDio_arch,    /*  1: Teem thinks this architecture can't do it */
    airNoDio_format,  /*  2: Teem thinks given data file format can't use it */
    airNoDio_std,     /*  3: DIO isn't possible for std{in|out|err} */
    airNoDio_fd,      /*  4: couldn't get underlying file descriptor */
    airNoDio_dioinfo, /*  5: calling fcntl() to get direct I/O info failed */
    airNoDio_small,   /*  6: requested size is too small */
    airNoDio_size,    /*  7: requested size not a multiple of d_miniosz */
    airNoDio_ptr,     /*  8: pointer not multiple of d_mem */
    airNoDio_fpos,    /*  9: current file position not multiple of d_miniosz */
    airNoDio_setfl,   /* 10: fcntl(fd, SETFL, FDIRECT) failed */
    airNoDio_test,    /* 11: couldn't memalign() even a small bit of memory */
    airNoDio_disable  /* 12: someone disabled it with airDisableDio */
};

SIMPLE_CLASS_EXPORT int  acc_add(int);

#ifdef __cplusplus
}
#endif /*end of __cplusplus */
#endif
